#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
API测试框架打包配置
"""

from setuptools import setup, find_packages

# 读取README文件
with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

# 读取requirements.txt
with open("requirements.txt", "r", encoding="utf-8") as f:
    requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]

setup(
    name="PyAssured",
    version="1.0.0",
    author="PyAssured Team",
    author_email="pyassured@example.com",
    description="一个功能强大的Python API测试框架",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://gitee.com/xianyunhege/pyassured",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Topic :: Software Development :: Testing",
        "Topic :: Software Development :: Quality Assurance",
    ],
    python_requires=">=3.7",
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=6.0",
            "black",
            "flake8",
            "mypy",
        ],
    },
    entry_points={
        "console_scripts": [
            "pax=pyassured.cli:main",
        ],
    },
    include_package_data=True,
    package_data={
        "pyassured": [
            "templates/*.py",
            "templates/*.yaml",
            "templates/*.md",
        ],
    },
)
